package com.poorstu.manager.impl;

import java.util.List;

import com.poorstu.dao.ClassAndCollegeDao;
import com.poorstu.manager.ClassAndCollegeManager;
import com.poorstu.model.ClassMod;
import com.poorstu.model.CollegeMod;

public class ClassAndCollegeManagerImpl implements ClassAndCollegeManager {
		
		ClassAndCollegeDao classAndCollegeDao;
	public List<CollegeMod> selectCollegeAll() {
		
		try{
			List collegeList=classAndCollegeDao.selectCollegeAll();
			return collegeList;
			
		}catch(Exception e){
			e.printStackTrace();
			return null;
		}
		
		
		
	}
	
	public ClassMod selectClassById(int classId) {
		  
		return classAndCollegeDao.selectClassById(classId);
	}
	
	public void setClassAndCollegeDao(ClassAndCollegeDao classAndCollegeDao) {
		this.classAndCollegeDao = classAndCollegeDao;
	}
	
	
	

}
